const ResultModel = require("../utils/result");
const ListService = require("../dao/orderMapper")
module.exports = {
  fetchList: (req, res) => {
    let condition = req.query;
    let rm = new ResultModel();

    ListService.list(condition).then(result => {
      rm.setData(result);
      rm.setSuccessCode();
      res.send(rm);
      res.end();
    });
  }
}
